<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html:html lang="true">
<head>  
  <title>文摘/新增</title>
  <%@ include file="../link_script.jsp" %>
  <script type="text/javascript" src="fckeditor/fckeditor.js"></script>
</head>
<body> 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@include file="../operate_button_add.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#b5d6e6">       
          <tr>
            <td width="100%" height="22" bgcolor="#FFFFFF" class="STYLE3"><div align="center">录入文摘</div></td>
          </tr>
          <html:form action="digest.do?method=addDigest_Do">
          <tr>
            <td class="STYLE1" bgcolor="#FFFFFF"><table width="100%" border="0" bordercolor="#b5d6e6" cellpadding="0" cellspacing="0">
              <tr>
                <td class="STYLE3" height="22" bgcolor="#FFFFFF" width="8%"><div align="left">&nbsp;&nbsp;书名 : </div></td>
                <td class="STYLE1" height="22" bgcolor="#FFFFFF"><div align="left"><html:text property="bookTitle" size="60" />
                &nbsp;&nbsp;<font color="red">*</font>&nbsp;&nbsp; 书名不能为空<br/></div></td>
              </tr>
              <tr>
                <td class="STYLE3" height="22" bgcolor="#FFFFFF" width="8%"><div align="left">&nbsp;&nbsp;作者 : </div></td>
                <td class="STYLE1" height="22" bgcolor="#FFFFFF"><div align="left"><html:text property="writer" size="60" />
                <br/></div></td>
              </tr>
              <tr>
                <td class="STYLE3" height="22" bgcolor="#FFFFFF" width="8%"><div align="left">&nbsp;&nbsp;类型 : </div></td>
                <td class="STYLE1" height="22" bgcolor="#FFFFFF"><div align="left">
                <html:select property="digestType">
                  <html:option value="长篇小说">长篇小说</html:option>
                  <html:option value="散文诗歌">散文诗歌</html:option>      
                  <html:option value="短篇美文">短篇美文</html:option>    
                  <html:option value="影评书评">影评书评</html:option>            
                </html:select>
                <br/></div></td>
              </tr>  
              <tr>
                <td class="STYLE3" height="22" bgcolor="#FFFFFF" width="8%"><div align="left">&nbsp;&nbsp;摘要: </div></td>
                <td class="STYLE1" height="22" bgcolor="#FFFFFF"><div align="left"><html:textarea property="digestDesc" cols="80" rows="3"></html:textarea>
                <br/></div></td>
              </tr>      
              <tr>
                <td class="STYLE3" height="22" bgcolor="#FFFFFF"><div align="left">&nbsp;&nbsp;正文 : </div></td>
                <td class="STYLE1" height="22" bgcolor="#FFFFFF"><div align="left"><textarea name="digestText" id="digestText" style="width:100%; height:400px;"></textarea>               
                <script type="text/javascript">
                    var oFCKeditor = new FCKeditor( 'digestText' ) ;
                    oFCKeditor.BasePath = 'fckeditor/' ;
                    oFCKeditor.ToolbarSet = 'Default' ;
                    oFCKeditor.Width = '100%' ;
                    oFCKeditor.Height = '300' ;
                    oFCKeditor.Value = '' ;
                    oFCKeditor.ReplaceTextarea(); 
                    // oFCKeditor.Create() ;
                 </script>
                 <br/></div></td>
              </tr>          
            </table></td>
          </tr>
          <tr>
            <td height="20" bgcolor="#FFFFFF" class="STYLE1"><div align="center">
            <html:submit value="提交"/><html:reset value="取消"/></div></td>
          </tr>
          </html:form>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@include file="../no_page.jsp" %>
</table>
</body>
</html:html>
